package com.xinhe.cn.cpbox.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author LHB
 * @since 2021-10-09
 */
@Data
@TableName("user_info")
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "open_id", type = IdType.INPUT)
    private String openId;

    /**
     * 头像
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 用户的unid
     */
    @TableField("unid")
    private String unid;

    /**
     * 传参and展示用数字id
     */
    @TableField("uid")
    private Long uid;

    /**
     * 推广人openId
     */
    @TableField("extend_id")
    private String extendId;
}
